﻿using CozeDomain.Entities;
using CozeDto.ConsumptionHistoryDtos;
using D.UtilCore.Dtos;
using D.UtilFreesqlOrm;

namespace CozeDomain.IServices
{
    /// <summary>
    /// 用户消费记录接口
    /// </summary>
    public interface IConsumptionHistoryService : IBaseService<ConsumptionHistoryEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqAddConsumptionHistory"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddConsumptionHistoryAsync(ReqAddConsumptionHistory reqAddConsumptionHistory);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteConsumptionHistoryAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqUpdateConsumptionHistory"></param>
        /// <returns></returns> 
        Task<ApiResult<int>> UpdateConsumptionHistoryAsync(ReqUpdateConsumptionHistory reqUpdateConsumptionHistory); 

        /// <summary>
        /// 单个查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns> 
        Task<ApiResult<RepConsumptionHistoryInfo>> GetConsumptionHistoryAsync(string id);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQueryConsumptionHistoryPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepConsumptionHistoryInfo>>> QueryConsumptionHistoryPagesAsync(ReqQueryConsumptionHistoryPage reqQueryConsumptionHistoryPage); 
    }
}
